using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ModMicroBlogInfo : GeneratedMessageLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>
		{
			private bool resultIsReadOnly;
			private ModMicroBlogInfo result;
			protected override ModMicroBlogInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ModMicroBlogInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ModMicroBlogInfo DefaultInstanceForType
			{
				get
				{
					return ModMicroBlogInfo.DefaultInstance;
				}
			}
			public SKBuiltinString_t UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint MicroBlogType
			{
				get
				{
					return this.result.MicroBlogType;
				}
				set
				{
					this.SetMicroBlogType(value);
				}
			}
			public uint NotifyStatus
			{
				get
				{
					return this.result.NotifyStatus;
				}
				set
				{
					this.SetNotifyStatus(value);
				}
			}
			public uint DeleteFlag
			{
				get
				{
					return this.result.DeleteFlag;
				}
				set
				{
					this.SetDeleteFlag(value);
				}
			}
			public Builder()
			{
				this.result = ModMicroBlogInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ModMicroBlogInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ModMicroBlogInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ModMicroBlogInfo other = this.result;
					this.result = new ModMicroBlogInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ModMicroBlogInfo.Builder Clear()
			{
				this.result = ModMicroBlogInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ModMicroBlogInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ModMicroBlogInfo.Builder(this.result);
				}
				return new ModMicroBlogInfo.Builder().MergeFrom(this.result);
			}
			public override ModMicroBlogInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ModMicroBlogInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is ModMicroBlogInfo)
				{
					return this.MergeFrom((ModMicroBlogInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ModMicroBlogInfo.Builder MergeFrom(ModMicroBlogInfo other)
			{
				return this;
			}
			public override ModMicroBlogInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ModMicroBlogInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ModMicroBlogInfo._modMicroBlogInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ModMicroBlogInfo._modMicroBlogInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasUserName)
							{
								builder.MergeFrom(this.UserName);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.UserName = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasMicroBlogType = input.ReadUInt32(ref this.result.microBlogType_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasNotifyStatus = input.ReadUInt32(ref this.result.notifyStatus_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasDeleteFlag = input.ReadUInt32(ref this.result.deleteFlag_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ModMicroBlogInfo.Builder SetUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public ModMicroBlogInfo.Builder SetUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = builderForValue.Build();
				return this;
			}
			public ModMicroBlogInfo.Builder MergeUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasUserName && this.result.userName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.userName_ = SKBuiltinString_t.CreateBuilder(this.result.userName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.userName_ = value;
				}
				this.result.hasUserName = true;
				return this;
			}
			public ModMicroBlogInfo.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = null;
				return this;
			}
			public ModMicroBlogInfo.Builder SetMicroBlogType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMicroBlogType = true;
				this.result.microBlogType_ = value;
				return this;
			}
			public ModMicroBlogInfo.Builder ClearMicroBlogType()
			{
				this.PrepareBuilder();
				this.result.hasMicroBlogType = false;
				this.result.microBlogType_ = 0u;
				return this;
			}
			public ModMicroBlogInfo.Builder SetNotifyStatus(uint value)
			{
				this.PrepareBuilder();
				this.result.hasNotifyStatus = true;
				this.result.notifyStatus_ = value;
				return this;
			}
			public ModMicroBlogInfo.Builder ClearNotifyStatus()
			{
				this.PrepareBuilder();
				this.result.hasNotifyStatus = false;
				this.result.notifyStatus_ = 0u;
				return this;
			}
			public ModMicroBlogInfo.Builder SetDeleteFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasDeleteFlag = true;
				this.result.deleteFlag_ = value;
				return this;
			}
			public ModMicroBlogInfo.Builder ClearDeleteFlag()
			{
				this.PrepareBuilder();
				this.result.hasDeleteFlag = false;
				this.result.deleteFlag_ = 0u;
				return this;
			}
		}
		public const int UserNameFieldNumber = 1;
		public const int MicroBlogTypeFieldNumber = 2;
		public const int NotifyStatusFieldNumber = 3;
		public const int DeleteFlagFieldNumber = 4;
		private static readonly ModMicroBlogInfo defaultInstance;
		private static readonly string[] _modMicroBlogInfoFieldNames;
		private static readonly uint[] _modMicroBlogInfoFieldTags;
		private bool hasUserName;
		private SKBuiltinString_t userName_;
		private bool hasMicroBlogType;
		private uint microBlogType_;
		private bool hasNotifyStatus;
		private uint notifyStatus_;
		private bool hasDeleteFlag;
		private uint deleteFlag_;
		private int memoizedSerializedSize = -1;
		public static ModMicroBlogInfo DefaultInstance
		{
			get
			{
				return ModMicroBlogInfo.defaultInstance;
			}
		}
		public override ModMicroBlogInfo DefaultInstanceForType
		{
			get
			{
				return ModMicroBlogInfo.DefaultInstance;
			}
		}
		protected override ModMicroBlogInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SKBuiltinString_t UserName
		{
			get
			{
				return this.userName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public uint MicroBlogType
		{
			get
			{
				return this.microBlogType_;
			}
		}
		public uint NotifyStatus
		{
			get
			{
				return this.notifyStatus_;
			}
		}
		public uint DeleteFlag
		{
			get
			{
				return this.deleteFlag_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasUserName && this.hasMicroBlogType && this.hasNotifyStatus && this.hasDeleteFlag;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.UserName);
				}
				if (this.hasMicroBlogType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.MicroBlogType);
				}
				if (this.hasNotifyStatus)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.NotifyStatus);
				}
				if (this.hasDeleteFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.DeleteFlag);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ModMicroBlogInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] modMicroBlogInfoFieldNames = ModMicroBlogInfo._modMicroBlogInfoFieldNames;
			if (this.hasUserName)
			{
				output.WriteMessage(1, modMicroBlogInfoFieldNames[3], this.UserName);
			}
			if (this.hasMicroBlogType)
			{
				output.WriteUInt32(2, modMicroBlogInfoFieldNames[1], this.MicroBlogType);
			}
			if (this.hasNotifyStatus)
			{
				output.WriteUInt32(3, modMicroBlogInfoFieldNames[2], this.NotifyStatus);
			}
			if (this.hasDeleteFlag)
			{
				output.WriteUInt32(4, modMicroBlogInfoFieldNames[0], this.DeleteFlag);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasMicroBlogType)
			{
				num ^= this.microBlogType_.GetHashCode();
			}
			if (this.hasNotifyStatus)
			{
				num ^= this.notifyStatus_.GetHashCode();
			}
			if (this.hasDeleteFlag)
			{
				num ^= this.deleteFlag_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ModMicroBlogInfo modMicroBlogInfo = value as ModMicroBlogInfo;
			return modMicroBlogInfo != null && (this.hasUserName == modMicroBlogInfo.hasUserName && (!this.hasUserName || this.userName_.Equals(modMicroBlogInfo.userName_))) && (this.hasMicroBlogType == modMicroBlogInfo.hasMicroBlogType && (!this.hasMicroBlogType || this.microBlogType_.Equals(modMicroBlogInfo.microBlogType_))) && (this.hasNotifyStatus == modMicroBlogInfo.hasNotifyStatus && (!this.hasNotifyStatus || this.notifyStatus_.Equals(modMicroBlogInfo.notifyStatus_))) && (this.hasDeleteFlag == modMicroBlogInfo.hasDeleteFlag && (!this.hasDeleteFlag || this.deleteFlag_.Equals(modMicroBlogInfo.deleteFlag_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>.PrintField("MicroBlogType", this.hasMicroBlogType, this.microBlogType_, writer);
			GeneratedMessageLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>.PrintField("NotifyStatus", this.hasNotifyStatus, this.notifyStatus_, writer);
			GeneratedMessageLite<ModMicroBlogInfo, ModMicroBlogInfo.Builder>.PrintField("DeleteFlag", this.hasDeleteFlag, this.deleteFlag_, writer);
		}
		public static ModMicroBlogInfo ParseFrom(byte[] data)
		{
			return ModMicroBlogInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ModMicroBlogInfo MakeReadOnly()
		{
			return this;
		}
		public static ModMicroBlogInfo.Builder CreateBuilder()
		{
			return new ModMicroBlogInfo.Builder();
		}
		public override ModMicroBlogInfo.Builder ToBuilder()
		{
			return ModMicroBlogInfo.CreateBuilder(this);
		}
		public override ModMicroBlogInfo.Builder CreateBuilderForType()
		{
			return new ModMicroBlogInfo.Builder();
		}
		public static ModMicroBlogInfo.Builder CreateBuilder(ModMicroBlogInfo prototype)
		{
			return new ModMicroBlogInfo.Builder(prototype);
		}
		static ModMicroBlogInfo()
		{
			ModMicroBlogInfo.defaultInstance = new ModMicroBlogInfo().MakeReadOnly();
			ModMicroBlogInfo._modMicroBlogInfoFieldNames = new string[]
			{
				"DeleteFlag",
				"MicroBlogType",
				"NotifyStatus",
				"UserName"
			};
			ModMicroBlogInfo._modMicroBlogInfoFieldTags = new uint[]
			{
				32u,
				16u,
				24u,
				10u
			};
			object.ReferenceEquals(micromsg.Proto.ModMicroBlogInfo.Descriptor, null);
		}
	}
}
